﻿using System.Data;
using System.Data.SqlClient;
using LoverMeeting.Model.Entity;

namespace LoverMeeting.DataBase.DataMappers
{
    public class MaritalStatusMapper : IDataMapper<MaritalStatus>
    {
        public MaritalStatus GetData(IDataReader reader)
        {
            return new MaritalStatus
                       {
                           Id = int.Parse(reader["MaritalStatusId"].ToString()),
                           Description = reader["MaritalStatusDescription"].ToString()
                       };
        }

        public void SetParameter(SqlCommand command, MaritalStatus entity)
        {
            throw new System.NotImplementedException();
        }

        public int GetRecordCount(IDataReader reader)
        {
            throw new System.NotImplementedException();
        }
    }
}
